//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.live.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

public class LiveExamTaskBarrage implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(
            value = "id",
            type = IdType.AUTO
    )
    private Long id;
    private Long barrageId;
    private Integer timeIndex;
    private Long productId;
    private Long taskId;
    private String barrageContext;

    public LiveExamTaskBarrage() {
    }

    public Long getId() {
        return this.id;
    }

    public Long getBarrageId() {
        return this.barrageId;
    }

    public Integer getTimeIndex() {
        return this.timeIndex;
    }

    public Long getProductId() {
        return this.productId;
    }

    public Long getTaskId() {
        return this.taskId;
    }

    public String getBarrageContext() {
        return this.barrageContext;
    }

    public LiveExamTaskBarrage setId(final Long id) {
        this.id = id;
        return this;
    }

    public LiveExamTaskBarrage setBarrageId(final Long barrageId) {
        this.barrageId = barrageId;
        return this;
    }

    public LiveExamTaskBarrage setTimeIndex(final Integer timeIndex) {
        this.timeIndex = timeIndex;
        return this;
    }

    public LiveExamTaskBarrage setProductId(final Long productId) {
        this.productId = productId;
        return this;
    }

    public LiveExamTaskBarrage setTaskId(final Long taskId) {
        this.taskId = taskId;
        return this;
    }

    public LiveExamTaskBarrage setBarrageContext(final String barrageContext) {
        this.barrageContext = barrageContext;
        return this;
    }

    public String toString() {
        return "LiveExamTaskBarrage(id=" + this.getId() + ", barrageId=" + this.getBarrageId() + ", timeIndex=" + this.getTimeIndex() + ", productId=" + this.getProductId() + ", taskId=" + this.getTaskId() + ", barrageContext=" + this.getBarrageContext() + ")";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof LiveExamTaskBarrage)) {
            return false;
        } else {
            LiveExamTaskBarrage other = (LiveExamTaskBarrage)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$id = this.getId();
                Object other$id = other.getId();
                if (this$id == null) {
                    if (other$id != null) {
                        return false;
                    }
                } else if (!this$id.equals(other$id)) {
                    return false;
                }

                Object this$barrageId = this.getBarrageId();
                Object other$barrageId = other.getBarrageId();
                if (this$barrageId == null) {
                    if (other$barrageId != null) {
                        return false;
                    }
                } else if (!this$barrageId.equals(other$barrageId)) {
                    return false;
                }

                Object this$timeIndex = this.getTimeIndex();
                Object other$timeIndex = other.getTimeIndex();
                if (this$timeIndex == null) {
                    if (other$timeIndex != null) {
                        return false;
                    }
                } else if (!this$timeIndex.equals(other$timeIndex)) {
                    return false;
                }

                label62: {
                    Object this$productId = this.getProductId();
                    Object other$productId = other.getProductId();
                    if (this$productId == null) {
                        if (other$productId == null) {
                            break label62;
                        }
                    } else if (this$productId.equals(other$productId)) {
                        break label62;
                    }

                    return false;
                }

                label55: {
                    Object this$taskId = this.getTaskId();
                    Object other$taskId = other.getTaskId();
                    if (this$taskId == null) {
                        if (other$taskId == null) {
                            break label55;
                        }
                    } else if (this$taskId.equals(other$taskId)) {
                        break label55;
                    }

                    return false;
                }

                Object this$barrageContext = this.getBarrageContext();
                Object other$barrageContext = other.getBarrageContext();
                if (this$barrageContext == null) {
                    if (other$barrageContext != null) {
                        return false;
                    }
                } else if (!this$barrageContext.equals(other$barrageContext)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof LiveExamTaskBarrage;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        int result1 = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $barrageId = this.getBarrageId();
        result1 = result * 59 + ($barrageId == null ? 43 : $barrageId.hashCode());
        Object $timeIndex = this.getTimeIndex();
        result1 = result * 59 + ($timeIndex == null ? 43 : $timeIndex.hashCode());
        Object $productId = this.getProductId();
        result1 = result * 59 + ($productId == null ? 43 : $productId.hashCode());
        Object $taskId = this.getTaskId();
        result1 = result * 59 + ($taskId == null ? 43 : $taskId.hashCode());
        Object $barrageContext = this.getBarrageContext();
        result1 = result * 59 + ($barrageContext == null ? 43 : $barrageContext.hashCode());
        return result1;
    }
}
